package com.woniu.supermarket.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.supermarket.entity.Supplier;
import com.woniu.supermarket.entity.WarehousingDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

//商品入库
@Data
@ApiModel(description="用来封装商品入库单数据")
public class WarehousingVo {
    @ApiModelProperty(value = "入库id")
    private Integer id;

    @ApiModelProperty(value = "供应商id")
    private Integer supplierId;

    @ApiModelProperty(value = "入库单号")
    private String warehousingNumber;

    @ApiModelProperty(value = "总价")
    private BigDecimal total;

    @ApiModelProperty(value = "入库人员")
    private String warehousingStaff;

    @ApiModelProperty(value = "入库日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date warehousingTime;

    @ApiModelProperty(value = "入库状态")
    private Integer status;

    @ApiModelProperty(value = "供应商")
    private Supplier supplier;

    @ApiModelProperty(value = "入库单详情集合")
    private List<WarehousingDetailVo> warehousingDetailVoList;

    @ApiModelProperty(value = "入库类型")
    private Integer warehousingCategory;
}
